#ifndef ACCOUTMANAGER_H
#define ACCOUTMANAGER_H

#include <QObject>
#include "network/downloader.h"
#include "network/uploader.h"

class AccoutManager : public QObject
{
    Q_OBJECT
public:
    explicit AccoutManager(QObject *parent = 0);
    void Login(QString username, QString Password);
    void LockSess();
    void UnLockSess(bool hash=true);
    void TestLocked();
    QString GetUser(){return _user;}
signals:
    
public slots:
    
private:
    DownLoader* _downloader;
    UpLoader*  _uploader;

    QString _user;
    QString _pass;
    void DwnData();
    void UpData();
    bool cleanDir(const QString &dirName, const bool &all = false );
    void Extract();
    void Compress();

    QString DestDir;

};

#endif // ACCOUTMANAGER_H
